package cn.stylefeng.guns.modular.model.params;

import cn.stylefeng.guns.config.redislock.CacheParam;
import lombok.Data;
import cn.stylefeng.roses.kernel.model.validator.BaseValidatingParam;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 工作
 * </p>
 *
 * @author luoqingqiu
 * @since 2020-09-25
 */
@Data
public class WorkBookParam implements Serializable, BaseValidatingParam {

    private static final long serialVersionUID = 1L;

    @CacheParam
    @NotNull(message = "id不可为空")
    private Long id;

    @CacheParam
    @NotEmpty(message = "name不可为空")
    private String name;

    private String work;

    private Date createTime;

    private String createUser;

    private Date updateTime;

    private String updateUser;

    private String isDelete;

    private Integer version;

    @Override
    public String checkParam() {
        return null;
    }

}
